package cn.fl.warrant.service;

import java.util.List;

import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import cn.fl.warrant.vo.ArcBorrowDetailVO;
import fl.warrant.facade.archive.condition.ArcBorrowDetailQueryCondition;

/**
 * @Description: 借阅申请明细表(旧表：T_API_DOCUMENT_BORROW_DETAIL) 客户端服务层接口
 * @Description: 持久层方法名称前缀：新增：insert* 删除：delete* 修改：update* 批量：batch*
 *               查询对象：select* get* find* 查询集合：select*
 * @Description: 业务层方法名称前缀：新增：add* 删除：remove* 修改：modify* 查询对象：select* get*
 *               批量：batch* 查询集合：search*
 */
public interface IArcBorrowDetailService {

	/**
	 * 获取唯一对象
	 * 
	 * @param id
	 *            主键
	 * @return 对象DTO
	 */
	public ArcBorrowDetailVO selectById(Long id) throws BaseException;

	/**
	 * 新增
	 * 
	 * @param entity
	 * @return
	 */
	public Long add(ArcBorrowDetailVO entity) throws BaseException;

	/**
	 * 删除
	 * 
	 * @param id
	 * @return
	 */
	public boolean removeById(Long id) throws BaseException;

	/**
	 * 删除
	 * 
	 * @param ids
	 * @return
	 */
	public boolean removeByIds(List<Long> ids) throws BaseException;

	/**
	 * 修改
	 * 
	 * @param entity
	 * @return
	 */
	public boolean modify(ArcBorrowDetailVO entity) throws BaseException;

	/**
	 * 分页查询
	 * 
	 * @param page
	 * @return
	 */
	public Pager searchListPage(Pager page) throws BaseException;

	/**
	 * 查询所有
	 * 
	 * @param qc
	 * @return
	 * @throws BaseException
	 */
	public List<ArcBorrowDetailVO> searchList(ArcBorrowDetailQueryCondition qc)
			throws BaseException;
}
